package com.zc.dao.permission;

import com.zc.entity.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    int selectTotal();

    List<Role> selectAll(Map<String, Object> params);

    void insertPathRefRoleId(Map<String,Object> params);

    List<Role> findAllRole(@Param(value = "roleId") String roleId) throws Exception;

    void updateByRoleId(Map<String,Object> params);

}